﻿using MiniErp.Model.Entities.AssetManagement;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.Model.Entities
{
    /// <summary>
    /// 部门信息实体
    /// </summary>
    [Table("Department")]
    public class DepartmentEntity
    {
        /// <summary>
        /// 部门编号
        /// </summary>
        [Key]
        [MaxLength(6)]
        [MinLength(6)]
        public int DepartmentId { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        [MaxLength(12), Required]
        public string DepartmentName { get; set; }

        public List<AssetInfoEntity> AssetInfos { get; set; }
    }
}
